from django.db import models
from datetime import datetime


# Create your models here.
class Contents(models.Model):
    img = models.ImageField(upload_to='img_url/', verbose_name=u'图片地址')
    title = models.CharField(max_length=10, verbose_name=u'标题')
    author = models.CharField(max_length=10, verbose_name=u'作者')
    detail = models.CharField(max_length=1000, verbose_name=u'详情')
    add_time = models.DateTimeField(default=datetime.now(), verbose_name=u'添加时间')
